package com.dlut.txy.designpattern.chainofresponsibility.approve1.impl;

import com.dlut.txy.designpattern.chainofresponsibility.approve1.AskForLeaveApproveHandler;
import com.dlut.txy.designpattern.chainofresponsibility.approve1.entity.AskForLeaveRequest;

/**
 * 二级审批，只能审批请假天数在7天以内（含）的
 */
public class SecondApproveHandler extends AskForLeaveApproveHandler {
    @Override
    public int getApproveMax() {
        return 7;
    }

    @Override
    protected void customHandle(AskForLeaveRequest request) {
        System.out.println("二级审批通过");
    }

}
